﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WangMi.BLL;
using WangMi.Model;

namespace WangMiCMS.Controllers
{
    public class MenuController : Controller
    {
        /// <summary>
        /// 子菜单
        /// </summary>
        /// <param name="menuId"></param>
        /// <returns></returns>
        public ActionResult SubMenu(int menuId)
        {
            List<SubMenu> subMenuList = BLL_Menu.GetSubMenu(menuId);
            return PartialView(MenuControllerConstants.SubMenuView, subMenuList);
        }


        /// <summary>
        /// 子菜单初始化内容页
        /// </summary>
        /// <param name="actionName"></param>
        /// <param name="controllerName"></param>
        /// <returns></returns>
        public ActionResult SubMenuContent(string actionName, string controllerName)
        {
            return RedirectToAction(actionName, controllerName);
        }
    }
}
